﻿using LPLS.DBEntities.ConfigModels;
using LPLS.DBInterface.ConfigModels;
using Prism.Mvvm;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PropertyConfigModule.Models
{



  public   class PropertyConfigDTO: BindableBase
    {




      
        public Guid Id { get; set; }

      
        public string PropertyName { get; set; }
        /// <summary>
        /// 属性ID
        /// </summary>
        public string PropertyID { get; set; }
        /// <summary>
        /// 模块ID
        /// </summary>
        public Guid ModuleID { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsActive { get; set; }
   
        /// <summary>
        /// 模块名称
        /// </summary>
        public string ModuleName { get; set; }



























    }



    public class PropertyConfigModel : BindableBase
    {




        public void LoadDBData(IPropertyConfigService propertyConfigService)
        {
            ///获取全部数据
            var data = propertyConfigService.GetAll();




        }
        private ObservableCollection<PropertyConfig> _PropertyConfigList;
        /// <summary>
        /// Property数据
        /// </summary>
        public ObservableCollection<PropertyConfig> PropertyConfigList
        {
            get { return _PropertyConfigList; }
            set
            {

                SetProperty(ref _PropertyConfigList, value);
            }
        }
















    }
}
